package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 得分规则对象 def_score_rule
 * 
 * @author ruoyi
 * @date 2024-10-11
 */
public class DefScoreRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 演练 id */
    @Excel(name = "演练 id")
    private Long drillId;

    /** 规则名称/描述 */
    @Excel(name = "规则名称/描述")
    private String ruleName;

    /** 0：加分规则，1：减分规则 */
    @Excel(name = "0：加分规则，1：减分规则")
    private Integer ruleType;

    /** 赋分规则 */
    @Excel(name = "赋分规则")
    private String scoreRule;

    /** 父 id */
    @Excel(name = "父 id")
    private Long pid;

    private List<DefScoreRule> children;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setRuleName(String ruleName) 
    {
        this.ruleName = ruleName;
    }

    public String getRuleName() 
    {
        return ruleName;
    }
    public void setRuleType(Integer ruleType)
    {
        this.ruleType = ruleType;
    }

    public Integer getRuleType()
    {
        return ruleType;
    }
    public void setScoreRule(String scoreRule) 
    {
        this.scoreRule = scoreRule;
    }

    public String getScoreRule() 
    {
        return scoreRule;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }

    public List<DefScoreRule> getChildren() {
        return children;
    }

    public void setChildren(List<DefScoreRule> children) {
        this.children = children;
    }

    public Long getDrillId() {
        return drillId;
    }

    public void setDrillId(Long drillId) {
        this.drillId = drillId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("ruleName", getRuleName())
            .append("ruleType", getRuleType())
            .append("scoreRule", getScoreRule())
            .append("remark", getRemark())
            .append("pid", getPid())
            .append("createTime", getCreateTime())
            .toString();
    }
}
